export default {
    type: 'form',
    mode: 'horizontal',
    title: false,
    affixFooter: true,
    api: {
        url: '/upms/mgr/org/entp/apply/audit',
        data: {
            id: '${id}',
            checkStatus: '${checkStatus2}',
            checkOpinion: '${checkOpinion}'
        }
    },
    messages:{
        validateFailed:''
    },
    body:[
        {
            type: 'hidden',
            name: 'id'
        },
        {
            type: 'static',
            label: '企业类型:',
            name: 'entpTypeStr',
            labelWidth: 120,
        },
        {
            type: 'divider'
        },
        {
            type: 'fieldSet',
            title: '<h3 class="text-md font-bold">营业执照</h3>',
            body:[
                {
                    type: 'static-image',
                    name: 'businessLicenceFileUrl',
                    src: '${API_HOST}/base/file/preview/${businessLicenceFileId}',
                    enlargeAble: true,
                    showToolbar: true,
                    label: '营业执照附件:',
                    labelWidth: 120,
                },
                {
                    type: 'static',
                    name: 'orgName',
                    label: '企业名称:',
                    labelWidth: 120,
                },
                {
                    type: 'static',
                    name: 'registerCode',
                    label: '统一社会信用代码:',
                    labelWidth: 120,
                },
                {
                    type: 'static',
                    name: 'businessLicenceDate',
                    label: '有效期至:',
                    labelWidth: 120,
                },
                {
                    type: 'static',
                    label: '注册地址:',
                    labelWidth: 120,
                    value: '${CONCATENATE(provinceName,cityName,areaName)}'
                },
                {
                    type: 'static',
                    name: 'location',
                    label: '详细地址:',
                    labelWidth: 120,
                },
                {
                    type: 'divider'
                },
            ]
        },
        {
            type: 'fieldSet',
            title: '<h3 class="text-md font-bold">法人信息</h3>',
            body:[
                {
                    type: 'static-image',
                    name: 'legalCertificateFileUrl',
                    src: '${API_HOST}/base/file/preview/${legalCertificateFileId}',
                    enlargeAble: true,
                    showToolbar: true,
                    label: '有效证件附件:',
                    labelWidth: 120,
                },
                {
                    type: 'static',
                    name: 'legal',
                    label: '法定代表人:',
                    labelWidth: 120,
                },
                {
                    type: 'static',
                    name: 'legalCertificateTypeStr',
                    label: '证件类型:',
                    labelWidth: 120,
                },
                {
                    type: 'static',
                    name: 'legalCertificateNo',
                    label: '证件号码:',
                    labelWidth: 120,
                },
                {
                    type: 'divider'
                },
            ]
        },
        {
            type: 'fieldSet',
            title: '<h3 class="text-md font-bold">药品生产许可证</h3>',
            visibleOn: '${entpType == "1" || entpType == "3"}',
            body:[
                {
                    type: 'static-image',
                    name: 'productionLicenceFileUrl',
                    src: '${API_HOST}/base/file/preview/${productionLicenceFileId}',
                    enlargeAble: true,
                    showToolbar: true,
                    label: '许可证附件:',
                    labelWidth: 120,
                },
                {
                    type: 'static',
                    name: 'productionLicenceNo',
                    label: '许可证编号:',
                    labelWidth: 120,
                },
                {
                    type: 'static',
                    name: 'productionLicenceDate',
                    label: '有效期至:',
                    labelWidth: 120,
                },
                {
                    type: 'divider'
                },
            ]
        },
        {
            type: 'fieldSet',
            title: '<h3 class="text-md font-bold">药品经营许可证</h3>',
            visibleOn: '${entpType == "2" || entpType == "3"}',
            body:[
                {
                    type: 'static-image',
                    name: 'productionBusinessFileUrl',
                    src: '${API_HOST}/base/file/preview/${productionBusinessFileId}',
                    enlargeAble: true,
                    showToolbar: true,
                    label: '许可证附件:',
                    labelWidth: 120,
                },
                {
                    type: 'static',
                    name: 'productionBusinessNo',
                    label: '许可证编号:',
                    labelWidth: 120,
                },
                {
                    type: 'static',
                    name: 'productionBusinessDate',
                    label: '有效期至:',
                    labelWidth: 120,
                },
                {
                    type: 'divider'
                },
            ]
        },
        {
            type: 'fieldSet',
            title: '<h3 class="text-md font-bold">授权信息</h3>',
            body:[
                {
                    type: 'static-image',
                    name: 'authFileUrl',
                    src: '${API_HOST}/base/file/preview/${authFileId}',
                    enlargeAble: true,
                    showToolbar: true,
                    label: '授权书附件:',
                    labelWidth: 120,
                },
                {
                    type: 'static',
                    name: 'authName',
                    label: '被授权人姓名:',
                    labelWidth: 120,
                },
                {
                    type: 'static',
                    name: 'authPhone',
                    id: 'authPhone',
                    label: '被授权人手机号:',
                    labelWidth: 120,
                },
                {
                    type: 'divider'
                },
            ]
        },
        {
            type: 'fieldSet',
            title: '<h3 class="text-md font-bold">审核信息</h3>',
            body:[
                {
                    type: 'radios',
                    label: '审核状态:',
                    name: 'checkStatus2',
                    labelWidth: 120,
                    visibleOn: '${checkStatus == 1}',
                    options:[
                        {
                            label: '审核通过',
                            value: 2
                        },
                        {
                            label: '审核不通过',
                            value: 3
                        }
                    ],
                    required: true,
                    validationErrors: {
                        isRequired: "请选择审核状态"
                    },
                },
                {
                    type: 'static',
                    label: '审核状态:',
                    name: 'checkStatusStr',
                    labelWidth: 120,
                    visibleOn: '${checkStatus != 1}',
                },
                {
                    type: 'textarea',
                    name: 'checkOpinion',
                    label: '审核意见:',
                    labelWidth: 120,
                    staticOn: '${checkStatus != 1}',
                }
            ]
        }
    ],
}